package com.sooth.system.role.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

@Data
@Table("sys_role_menu")
public class SysRoleMenu {
    /**
     * 角色ID
     */
    @Id
    @Column(value = "role_id", jdbcType = Types.BIGINT)
    private Long roleId;
    /**
     * 菜单ID
     */
    @Id
    @Column(value = "menu_id", jdbcType = Types.BIGINT)
    private Long menuId;

    public SysRoleMenu() {
    }

    public SysRoleMenu(Long roleId, Long menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }
}
